<div class="m-page-title m-page-title-b1">
	<h2 class="u-tt">邮箱设置</h2>
</div>
<div class="m-form">
	<form name="" action="{$url|'AdminSetting/saveEmailData'}" method="post" id="form">
		<fieldset>
            <div>
                <div class="formitm">
					<label class="lab" >SMTP地址：</label>
					<div class="ipt">
						<input name="SMTP_HOST" type="text" class="u-ipt u-ipt-5" id="SMTP_HOST" value="{$info.SMTP_HOST}"   />
						<p>邮件服务器地址如：smtp.qq.com</p> 
				  </div>
				</div>
                <div class="formitm">
					<label class="lab" >服务端口：</label>
					<div class="ipt">
						<input name="SMTP_PORT" type="text" class="u-ipt u-ipt-5" id="SMTP_PORT" value="{$info.SMTP_PORT}"   />
				  <p>邮件服务器端口默认：25</p> </div>
				</div>
                <div class="formitm">
					<label class="lab" >SSL安全连接：</label>
					<div class="ipt">
                    	<label class="u-opt">
							<input name="SMTP_SSL" type="radio" value="1" {if="$info['SMTP_SSL']==1"} checked="checked" {/if} />
							开启</label>
						<label class="u-opt">
							<input name="SMTP_SSL" type="radio" value="0" {if="$info['SMTP_SSL']==0"} checked="checked" {/if} />
							关闭</label>
						<p>是否启用SSL安全连接</p> </div>
				</div>
                <div class="formitm">
					<label class="lab" >SMTP验证：</label>
					<div class="ipt">
                    	<label class="u-opt">
							<input name="SMTP_AUTH" type="radio" value="1" {if="$info['SMTP_AUTH']==1"} checked="checked" {/if} />
							开启</label>
						<label class="u-opt">
							<input name="SMTP_AUTH" type="radio" value="0" {if="$info['SMTP_AUTH']==0"} checked="checked" {/if} />
							关闭</label>
						<p>启用SMTP验证功能，一般需要开启</p> </div>
				</div>
                <div class="formitm">
					<label class="lab" >邮箱地址：</label>
					<div class="ipt">
						<input name="SMTP_USERNAME" type="text" class="u-ipt u-ipt-5" id="SMTP_USERNAME" value="{$info.SMTP_USERNAME}"   />
						<p>发信邮箱帐号</p> 
				  </div>
				</div>
                <div class="formitm">
					<label class="lab" >邮箱密码：</label>
					<div class="ipt">
						<input name="SMTP_PASSWORD" type="password" class="u-ipt u-ipt-5" id="SMTP_PASSWORD" value="{$info.SMTP_PASSWORD}"   />
						<p>发信邮箱密码</p> 
				  </div>
				</div>
                <div class="formitm">
					<label class="lab" >发信人：</label>
					<div class="ipt">
						<input name="SMTP_FROM_NAME" type="text" class="u-ipt u-ipt-5" id="SMTP_FROM_NAME" value="{$info.SMTP_FROM_NAME}"   />
						<p>发信人名称</p> 
				  </div>
				</div>
			</div>
			<div class="formitm formitm-1  formitm-2">
				<button class="u-btn" type="submit">保存配置</button>
				<button class="u-btn s-btn-c3" type="reset">重置</button>
				<span class="status" id="status"></p> </div>
		</fieldset>
	</form>
</div>
<script>
Do.ready('base','form','dialog','tabs',function() {
	$('#form').duxForm();
	$(".u-tabs li .tab-a").powerSwitch({classAdd : "tab-on"});
});
</script>